package com.ciei.dpagm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ciei.dpagm.common.enums.ParameterDataTypeEnum;

import java.io.Serializable;

/**
 * @author wangyan
 * @since 2023-04-03
 */
@TableName(value = "common_parameter")
public class Parameter implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.AUTO)
    private Integer parameterId;
    private Integer parentParameterId;
    private Integer parameterModelId;
    private Integer parameterModuleId;
    private String parameterName;
    private ParameterDataTypeEnum dataType;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String description;
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDelete;

    public Parameter() {
    }

    public Parameter(Integer parameterId, Integer parentParameterId, Integer parameterModelId, Integer parameterModuleId, String parameterName, ParameterDataTypeEnum dataType, String description) {
        this.parameterId = parameterId;
        this.parentParameterId = parentParameterId;
        this.parameterModelId = parameterModelId;
        this.parameterModuleId = parameterModuleId;
        this.parameterName = parameterName;
        this.dataType = dataType;
        this.description = description;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getParameterId() {
        return parameterId;
    }

    public void setParameterId(Integer parameterId) {
        this.parameterId = parameterId;
    }

    public Integer getParentParameterId() {
        return parentParameterId;
    }

    public void setParentParameterId(Integer parentParameterId) {
        this.parentParameterId = parentParameterId;
    }

    public Integer getParameterModelId() {
        return parameterModelId;
    }

    public void setParameterModelId(Integer parameterModelId) {
        this.parameterModelId = parameterModelId;
    }

    public Integer getParameterModuleId() {
        return parameterModuleId;
    }

    public void setParameterModuleId(Integer parameterModuleId) {
        this.parameterModuleId = parameterModuleId;
    }

    public String getParameterName() {
        return parameterName;
    }

    public void setParameterName(String parameterName) {
        this.parameterName = parameterName;
    }

    public ParameterDataTypeEnum getDataType() {
        return dataType;
    }

    public void setDataType(ParameterDataTypeEnum dataType) {
        this.dataType = dataType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}
